<?php
$t1 = microtime(true);

$a = 123;//echo gettype($a);
$a = 123.456;//echo gettype($a);
$a = "1234";//echo gettype($a);
$a = false;

var_dump($a);
echo "<br>";

if(gettype($a) == 'integer'){
  echo "Yes $a is integer";
}
if(gettype($a) == 'double'){
  echo "Yes $a is double";
}
if(gettype($a) == 'string'){
  echo "Yes $a is string";
}
if(gettype($a) == 'boolean'){
  echo "Yes $a is boolean";
}

$t2 = microtime(true);
//echo "Time Taken : ".($t2-$t1);
